package com.sciencep.pro.core.service.impl;

import com.sciencep.pro.core.domain.dto.home.ManPowerExpendByProjectVO;
import com.sciencep.pro.core.domain.dto.home.ManpowerExpendByRoleVO;
import com.sciencep.pro.core.domain.dto.prohistory.ProHistoryTo;
import com.sciencep.pro.core.domain.entity.ProHistory;
import com.sciencep.pro.core.dao.ProHistoryMapper;
import com.sciencep.pro.core.service.IProHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * @author Sciencep
 */
@Service
public class ProHistoryServiceImpl extends ServiceImpl<ProHistoryMapper, ProHistory> implements IProHistoryService {

    @Override
    public ProHistoryTo getProgress(String proCode) {
        return baseMapper.getProgress(proCode);
    }

    @Override
    public List<ManpowerExpendByRoleVO> getRoleVoList(Set<String> proNos) {
        return baseMapper.getRoleVoList(proNos);
    }

    @Override
    public List<ManPowerExpendByProjectVO> getVoList(Set<String> proNos) {
        return baseMapper.getVoList(proNos);
    }

    @Override
    public ProHistoryTo countProgress(String proCode) {
        return baseMapper.countProgress(proCode);
    }
}
